﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CML.Data
{
	public class ErrorCode
	{
		public const string EnvironmentNotFound = "EnvironmentNotFound";
		public const string FileNotFound = "FileNotFound";
		public const string InstructionFailed = "InstructionFailed";

		public static string GetDescription(string code)
		{
			switch (code)
			{
				case EnvironmentNotFound:
					return "Envrionment not found: ";
				case FileNotFound:
					return "File not found";
				case InstructionFailed:
					return "Failed to interpret instruction: ";
			}
			return code;
		}
	}
}
